// var TN_Widget = function() { var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; return { newWindow : true, CreateEventRow : function(row, isAlt) { var t = row[4].split("/"); t[0] = months[t[0]]; t[2] = ", " + t[2]; return "

" + t[0] + " " + "" + t[1] + "" + t[2] + "

" + row[3].substring(0,3) + " " + row[5] + "

" + row[0] + "

" + row[1] + " - " + row[2] + "

" + this.btnText + "" + ""; }, AddCss: function(cssUrl) { var fileref=document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", cssUrl); document.getElementsByTagName("head")[0].appendChild(fileref); }, CreateTable : function(eventData,kwds,url) { if(typeof(TN_SetWidgetOptions) == "function") TN_SetWidgetOptions(); //for backwards compatability var newTable = []; for(var cntr = 0; cntr < eventData.length; cntr++) newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1)); var objToAddTo; var footerLink = "" + this.footerText + ""; if(objToAddTo = document.getElementById("tn_results_container")) { objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
"; } else if(document.querySelector(".tnpl_results_container") != null) { document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
"; } else document.write("
" + newTable.join('') + "" + footerLink + "
"); } }; }(); //BPW-TNSERV-04A TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css'); TN_Widget.CreateTable([['Cody Jinks','Ascend Amphitheater','Nashville, TN','Saturday','4/27/2024','7:00 PM','6021297','Cody-Jinks-4-27-2024'],['Nashville Symphony: Harry Potter and The Deathly Hallows Part 2 - Film With Live Orchestra','Schermerhorn Symphony Center','Nashville, TN','Saturday','4/27/2024','7:30 PM','5718737','Nashville-Symphony--Harry-Potter-and-The-Deathly-Hallows-Part-2---Film-With-Live-Orchestra-4-27-2024'],['Rain - A Tribute to The Beatles','The Fisher Center for the Performing Arts','Nashville, TN','Saturday','4/27/2024','7:30 PM','6221170','Rain---A-Tribute-to-The-Beatles-4-27-2024'],['Jo Dee Messina','Ryman Auditorium','Nashville, TN','Saturday','4/27/2024','8:00 PM','6068484','Jo-Dee-Messina-4-27-2024'],['Silversun Pickups','Brooklyn Bowl - Nashville','Nashville, TN','Saturday','4/27/2024','8:00 PM','6258390','Silversun-Pickups-4-27-2024'],['TWRP','The Basement East - Nashville','Nashville, TN','Saturday','4/27/2024','8:00 PM','6148282','TWRP-4-27-2024'],['Nashville Symphony: Harry Potter and The Deathly Hallows Part 2 In Concert','Schermerhorn Symphony Center','Nashville, TN','Sunday','4/28/2024','2:00 PM','5893947','Nashville-Symphony--Harry-Potter-and-The-Deathly-Hallows-Part-2-In-Concert-4-28-2024'],['Arnez J','Zanies Comedy Night Club - Nashville','Nashville, TN','Sunday','4/28/2024','6:00 PM','6131322','Arnez-J-4-28-2024'],['Melanie Fiona','City Winery - Nashville','Nashville, TN','Sunday','4/28/2024','6:00 PM','6337744','Melanie-Fiona-4-28-2024'],['Johnnyswim','3rd & Lindsley','Nashville, TN','Sunday','4/28/2024','7:00 PM','6399212','Johnnyswim-4-28-2024']],'"Nashville Concerts"','https://www.ticketnetwork.com');